/**
 * Copyright 2018 asiainfo Inc.
 **/
package com.myz.rabbitmq.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * message相关信息
 *
 * @author maoyz on 2018/8/30
 * @version: v1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageWithTime<T> {

    /**
     * 消息ID
     */
    private Long id;

    /**
     * 消息时间戳
     */
    private Long time;

    /**
     * 消息体
     */
    private T message;

}
